package com.zhike.utils.conf;

import javax.annotation.PostConstruct;
import javax.annotation.Resource;

import org.springframework.context.annotation.Configuration;

import com.zhike.service.im.ChatServerLauncher;

import lombok.extern.slf4j.Slf4j;

@Configuration
@Slf4j
public class RunConfig {

  @Resource
  private ChatServerLauncher chatServerLauncher;

  @PostConstruct
  public void run() throws Exception {
    log.info("IM Server Start ...");

    chatServerLauncher.startup();

    log.info("IM Server End.");
  }
}
